//
//  zJBaseController.m
//  PinKe
//
//  Created by lanou on 15/12/23.
//  Copyright (c) 2015年 zj. All rights reserved.
//

#import "zJBaseController.h"
@interface zJBaseController ()<UIGestureRecognizerDelegate>

@end

@implementation zJBaseController
-(void)dealloc{
    
    
    NSLog(@"wo bei ");
}
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self addview];
    self.navigationController.interactivePopGestureRecognizer.delegate=self;
}
-(void)addview{
    self.navigationController.interactivePopGestureRecognizer.delegate=self;
    UIButton *changeFrame = [UIButton buttonWithType:(UIButtonTypeCustom)];
    changeFrame.frame = CGRectMake(10, 30, 30, 30);
    [changeFrame setImage:[UIImage imageNamed:@"jiantou"] forState:(UIControlStateNormal)];
    //changeFrame.backgroundColor = [UIColor blackColor];
    [changeFrame addTarget:self action:@selector(changeFramAction:) forControlEvents:(UIControlEventTouchUpInside)];
    [self.view addSubview:changeFrame];
    //添加一个再按钮边上的lable
    _labelname = [[UILabel alloc]initWithFrame:CGRectMake(50, 30, 150, 30)];
    _labelname.text = @"";
    _labelname.textColor= [UIColor grayColor];
    [self.view addSubview:_labelname];
    
    
    
}
-(void)changeFramAction:(UIButton*)button
{
    
    [self.navigationController popViewControllerAnimated:YES];
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
 #pragma mark - Navigation
 
 // In a storyboard-based application, you will often want to do a little preparation before navigation
 - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
 // Get the new view controller using [segue destinationViewController].
 // Pass the selected object to the new view controller.
 }
 */

@end
